package com.nf.entity;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Component
public class Student {
    private String name;
    private List<TestMoney> testMoneyList;

    public Student(){
        System.out.println("bean创建了一个student");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("bean了一个name");
        this.name = name;
    }

    public List<TestMoney> getTestMoneyList() {
        return testMoneyList;
    }

    public void setTestMoneyList(List<TestMoney> testMoneyList) {
        System.out.println("bean了一个setTestMoneyList");
        this.testMoneyList = testMoneyList;
    }
}
